import request from '@/utils/request'

// 查询报告信息列表
export function listHealthreport(query) {
  return request({
    url: '/health/healthreportinfo/list',
    method: 'get',
    params: query
  })
}

// 查询报告信息详细
export function getHealthreport(id) {
  return request({
    url: '/health/healthreportinfo/' + id,
    method: 'get'
  })
}

// 新增报告信息
export function addHealthreport(data) {
  return request({
    url: '/health/healthreportinfo',
    method: 'post',
    data: data
  })
}

// 修改报告信息
export function updateHealthreport(data) {
  return request({
    url: '/health/healthreportinfo',
    method: 'put',
    data: data
  })
}

// 删除报告信息
export function delHealthreport(id) {
  return request({
    url: '/health/healthreportinfo/' + id,
    method: 'delete'
  })
}
